package zjitc.mapper;

import org.apache.ibatis.annotations.Select;
import zjitc.domain.Role;

import java.util.List;

public interface RoleMapper {

    @Select("select * from user_role ur,role r where ur.roleId=r.id and ur.userId=#{uid}")
    public List<Role> findByUid(int id);
}
